package zcache



type PeerPicker interface {
	// 根据缓存key获取对应的Peer节点
	// 返回的是PeerGetter接口, 封装了Get方法, 用于从节点中获取缓存数据
	PickPeer(key string) (peer PeerGetter, ok bool)
}


// 节点Get接口
// httpGetter会实现该接口 (http client)
type PeerGetter interface {
	Get (group string, key string) ([]byte, error)
}